<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title></title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/application.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/form.css"/>">

<script type="text/javascript">
	function validateForm() {
		with (document.forms[0]) {
			if (hotelname.value == '') {
				alert("分店名称必须填写!");
				hotelname.focus();
				return false;
			}
			
			if (hoteladdr.value == '') {
				alert("分店地址必须填写!");
				hoteladdr.focus();
				return false;
			}
		}

		return true;
	}
</script>
</head>

<body>
	<div id="wrapper">
		<div id="f_title">开设分店</div>
		<form action="<c:url value="/hotelMgr?act=create"/>" method="post" onSubmit="return validateForm()">
			<div class="f_row">
				<span>分店名称:</span> <input type="text" name="hotelname" size="20" />
			</div>
			<div class="f_row">
				<span>分店地址:</span> <input type="text" name="hoteladdr" size="50" />
			</div>
			<div class="f_row">
				<span>联络电话:</span> <input type="text" name="hotelphone" size="20" />
			</div>
			<div class="f_row">
				<input type="submit" value="保存信息" />
			</div>
		</form>
	</div>
</body>
</html>
